package com.ict.txmsv2.mapper;

import com.ict.txmsv2.model.ClockIn;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClockInMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ClockIn record);

    int insertSelective(ClockIn record);

    ClockIn selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ClockIn record);

    int updateByPrimaryKey(ClockIn record);

    int count(int userId);

    int newInsert(@Param("clockIn") ClockIn clockIn);

    List<ClockIn> getAllClockIns();

    List<ClockIn> getAllClockInsForWeek(@Param("begin") String begin, @Param("end") String end);

    List<ClockIn> getCommuteByDay(@Param("date") String date);
}